package cn.ac.jaas.isc.vegetable.common.transaction.tx;

import cn.ac.jaas.isc.vegetable.common.transaction.tx.springcloud.feign.TransactionRestTemplateInterceptor;
import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 张高昌
 * @date 2022/4/30 11:11
 * @description: 功能描述
 */
@Configuration
public class RequestInterceptorConfiguration {

    @Bean
    public RequestInterceptor requestInterceptor() {
        return new TransactionRestTemplateInterceptor();
    }

}
